﻿using System.ComponentModel.DataAnnotations;

namespace DEL.Dzb
{
    /// <summary>
    /// 对象名称：党支部的数据实体类（数据实体层）    
    /// 作者姓名：yb   
    public class Party : BaseT
    {
        [Required(ErrorMessage = "部门名称不能为空。")]
        [Display(Name = "部门名称")]
        public string Name { get; set; }
        
        [Display(Name = "部门负责人")]
        public string Manager { get; set; }        
        
        [Display(Name = "地址")]
        public string Address { get; set; }

        [Display(Name = "父级部门ID")]
        public int ParentId { get; set; }

        public override string ToString() => Name;

    }
}
